//package com.gy.config;
//
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class FilterConfig {
//
//    @Bean
//    public FilterRegistrationBean<AuthorizationFilter> authorizationFilter() {
//        FilterRegistrationBean<AuthorizationFilter> registrationBean = new FilterRegistrationBean<>();
//        registrationBean.setFilter(new AuthorizationFilter());
//        registrationBean.addUrlPatterns("/*"); // 这里设置需要拦截的URL模式
//        registrationBean.setOrder(1);
//        return registrationBean;
//    }
//}
